home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue24 / ntserv / Demo1Log.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-07-04  |  2.8 KB  |  146 lines

  1. unit Demo1log;
  2.  
  3. interface
  4.  
  5. //
  6. //  Values are 32 bit values layed out as follows:
  7. //
  8. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  9. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  10. //  +---+-+-+-----------------------+-------------------------------+
  11. //  |Sev|C|R|     Facility          |               Code            |
  12. //  +---+-+-+-----------------------+-------------------------------+
  13. //
  14. //  where
  15. //
  16. //      Sev - is the severity code
  17. //
  18. //          00 - Success
  19. //          01 - Informational
  20. //          10 - Warning
  21. //          11 - Error
  22. //
  23. //      C - is the Customer code flag
  24. //
  25. //      R - is a reserved bit
  26. //
  27. //      Facility - is the facility code
  28. //
  29. //      Code - is the facility's status code
  30. //
  31. //
  32. // Define the facility codes
  33. //
  34.  
  35.  
  36. //
  37. // Define the severity codes
  38. //
  39.  
  40.  
  41. //
  42. // MessageId: DEMO1_SERVICE_STARTED
  43. //
  44. // MessageText:
  45. //
  46. //  The service started successfully.
  47. //
  48. const DEMO1_SERVICE_STARTED = $40000001;
  49.  
  50. //
  51. // MessageId: DEMO1_SERVICE_PAUSED
  52. //
  53. // MessageText:
  54. //
  55. //  The service was paused.
  56. //
  57. const DEMO1_SERVICE_PAUSED = $80000002;
  58.  
  59. //
  60. // MessageId: DEMO1_SERVICE_CONTINUED
  61. //
  62. // MessageText:
  63. //
  64. //  The service was resumed.
  65. //
  66. const DEMO1_SERVICE_CONTINUED = $40000003;
  67.  
  68. //
  69. // MessageId: DEMO1_SERVICE_FAILED
  70. //
  71. // MessageText:
  72. //
  73. //  The service failed to start.
  74. //
  75. const DEMO1_SERVICE_FAILED = $C0000004;
  76.  
  77. //
  78. // MessageId: DEMO1_SERVICE_ENDED
  79. //
  80. // MessageText:
  81. //
  82. //  The service ended successfully.
  83. //
  84. const DEMO1_SERVICE_ENDED = $40000005;
  85.  
  86. //
  87. // MessageId: DEMO1_SERVICE_INTERROGATED
  88. //
  89. // MessageText:
  90. //
  91. //  The service status was interrogated.
  92. //
  93. const DEMO1_SERVICE_INTERROGATED = $40000006;
  94.  
  95. //
  96. // MessageId: DEMO1_SERVICE_CODE_INVALID
  97. //
  98. // MessageText:
  99. //
  100. //  The service handler received an unexpected code of '%1'.
  101. //
  102. const DEMO1_SERVICE_CODE_INVALID = $C0000007;
  103.  
  104. //
  105. // MessageId: DEMO1_SERVICE_UPDATE_STATUS_FAILED
  106. //
  107. // MessageText:
  108. //
  109. //  The call to update SCM with current status failed. Last error code was %1.
  110. //
  111. const DEMO1_SERVICE_UPDATE_STATUS_FAILED = $C0000008;
  112.  
  113. //
  114. // MessageId: DEMO1_SERVICE_REGHANDLER_FAILED
  115. //
  116. // MessageText:
  117. //
  118. //  The call to register the service handler failed with %1.
  119. //
  120. const DEMO1_SERVICE_REGHANDLER_FAILED = $C0000009;
  121.  
  122. //
  123. // MessageId: DEMO1_SERVICE_STARTDISPATCHER_FAILED
  124. //
  125. // MessageText:
  126. //
  127. //  The call to start the service displatcher failed with %1.
  128. //
  129. const DEMO1_SERVICE_STARTDISPATCHER_FAILED = $C000000A;
  130.  
  131. //
  132. // MessageId: DEMO1_SERVICE_STARTUP_PARM_INVALID
  133. //
  134. // MessageText:
  135. //
  136. //  The service startup parameter '%1' is invalid. Expected a single number!
  137. //
  138. const DEMO1_SERVICE_STARTUP_PARM_INVALID = $C000000B;
  139.  
  140. implementation
  141.  
  142. {$R DEMO1LOG.RES}
  143.  
  144. end.
  145.  
  146.